package cn.lkp.mall.product.feign;

import cn.lkp.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("mall-ware")
public interface WareFeignService {
    /**
     * 查询sku是否有库存
     *
     */
    @PostMapping("/ware/waresku/hasstock")
    //去掉灰色的默认的public
    //由于SkuHasStockVo只在ware模块中有，所以需要复制到product或者common模块，这里复制到common模块
    R getSkuHasStock(@RequestBody List<Long> skuIds);
}
